using Magicodes.ExporterAndImporter.Core;
using Nest;
using Org.BouncyCastle.Crypto;

namespace Radius.NET.Interface.Entity
{
    /// <summary>
    /// 
    /// </summary>
    [Tenant(DbConfigIdConst.QyjConfigId), NotTable]
    [SugarTable("Inventory_Evidence")]
    public class InventoryEvidence
    {
        /// <summary>
        /// 
        /// </summary>
        public InventoryEvidence()
        {
        }

        /// <summary>
        /// 凭证编号
        ///
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public System.String Evidence_Number { get; set; }

        /// <summary>
        /// 年
        ///
        /// </summary>
        public System.Int32? Year { get; set; }

        /// <summary>
        /// 期间
        ///
        /// </summary>
        public System.Int32? PeriodNumber { get; set; }

        /// <summary>
        /// 日期
        ///
        /// </summary>
        public System.DateTime? Date { get; set; }

        /// <summary>
        /// 关闭日期
        ///
        /// </summary>
        public System.DateTime? Close_Date { get; set; }

        /// <summary>
        /// 类型
        ///
        /// </summary>
        public System.Int32? Type { get; set; }

        /// <summary>
        /// 生产批号
        ///
        /// </summary>
        public System.String Project { get; set; }

        /// <summary>
        /// 库位编码
        ///
        /// </summary>
        public System.String Stock_ID { get; set; }

        /// <summary>
        /// 库位描述
        ///
        /// </summary>
        public System.String DesStock_ID { get; set; }

        /// <summary>
        /// 客户编码
        ///
        /// </summary>
        public System.String ContactNum { get; set; }

        /// <summary>
        /// 描述
        ///
        /// </summary>
        public System.String Des { get; set; }

        /// <summary>
        /// 合同号
        ///
        /// </summary>
        public System.String OrderID { get; set; }

        /// <summary>
        /// 材料组编号
        ///
        /// </summary>
        public System.String Material_Group_Number { get; set; }

        /// <summary>
        /// 套料数量
        ///
        /// </summary>
        public System.Double? Group_Qty { get; set; }

        /// <summary>
        /// 损坏材料处理
        ///
        /// </summary>
        public System.Int32? Damage_Material_handle { get; set; }

        /// <summary>
        /// QA 报表
        ///
        /// </summary>
        public System.String QA_Report { get; set; }

        /// <summary>
        /// 原因编码
        ///
        /// </summary>
        public System.String ReasonID { get; set; }

        /// <summary>
        /// 参考凭证编号
        ///
        /// </summary>
        public System.String Reference_Evidence_Number { get; set; }

        /// <summary>
        /// 用途编码
        ///
        /// </summary>
        public System.String UTLID { get; set; }

        /// <summary>
        /// 套料控制
        ///
        /// </summary>
        public System.Int32? Group_Control { get; set; }

        /// <summary>
        /// 外协物料编码
        ///
        /// </summary>
        public System.String MFG_Inventory_ID { get; set; }

        /// <summary>
        /// 外协价格
        ///
        /// </summary>
        public System.Double? MFG_Price { get; set; }

        /// <summary>
        /// 外协入仓价格
        ///
        /// </summary>
        public System.Double? MFG_Income_Price { get; set; }

        /// <summary>
        /// 删除编号
        ///
        /// </summary>
        public System.String DEL_NO { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? APPosted { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? ARPosted { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String APPoster { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String ARPoster { get; set; }

        /// <summary>
        /// 有效标记
        ///
        /// </summary>
        public System.Int32? ActFlag { get; set; }

        /// <summary>
        /// 有效标记
        ///
        /// </summary>
        public System.Int32? InvFlag { get; set; }

        /// <summary>
        /// 支付标记
        ///
        /// </summary>
        public System.Int32? PayFlag { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Rs { get; set; }

        /// <summary>
        /// 制单人
        ///
        /// </summary>
        public System.String Maker { get; set; }

        /// <summary>
        /// 审核人
        ///
        /// </summary>
        public System.String Verifier { get; set; }

        /// <summary>
        /// 记帐人
        ///
        /// </summary>
        public System.String Poster { get; set; }

        /// <summary>
        /// 已审核
        ///
        /// </summary>
        public System.Int32? Verified { get; set; }

        /// <summary>
        /// 已记帐
        ///
        /// </summary>
        public System.Int32? Posted { get; set; }

        /// <summary>
        /// 业务员
        ///
        /// </summary>
        public System.String Salesman { get; set; }

        /// <summary>
        /// 送货到
        ///
        /// </summary>
        public System.String ShipTo { get; set; }

        /// <summary>
        /// 税单号
        ///
        /// </summary>
        public System.String InvoiceNo { get; set; }

        /// <summary>
        /// 完税日期
        ///
        /// </summary>
        public System.String Invoice_Date { get; set; }

        /// <summary>
        /// 材料计划编号
        ///
        /// </summary>
        public System.String Material_Issue_Plan_No { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? CLast { get; set; }

        /// <summary>
        /// 销售凭证
        ///
        /// </summary>
        public System.Int32? Sales_Verified { get; set; }

        /// <summary>
        /// QC凭证
        ///
        /// </summary>
        public System.Int32? Qc_Verified { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Double? Tom_paid { get; set; }

        /// <summary>
        /// 仓管
        ///
        /// </summary>
        public System.String WarehouseMan { get; set; }

        /// <summary>
        /// 经办人
        ///
        /// </summary>
        public System.String DutyMan { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String OtherCustFlag { get; set; }

        /// <summary>
        /// 记帐
        ///
        /// </summary>
        public System.String Remark { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? QcReceipeVerified { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String IQCNo { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? OutMethod { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? IssueType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? XmlExported { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? CheckExport { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? FinChecked { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String FinCheckMan { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? FinCheckDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String PayMent { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String VoucherFpzh { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? PurExpenseFlag { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsIgnore=true)]
        public System.Int32? Ymperiod { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? CreateDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String DeptLead { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String FProjectCode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String ContactPerson { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Businesser { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? SaleType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Area_ID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String DBID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? OutType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String OutComeDept { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String ShipEvNumber { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? ShipStatus { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? Closed { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String InComeDept { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String MSysncDB { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String DSysncDB { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? ISysnc { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Boolean? Bcvouch { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Csign { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Cvouch_NO { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Boolean? BcvouchM { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CsignM { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Cvouch_NOM { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Boolean? BcvouchF { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CsignF { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Cvouch_NOF { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Boolean? BcvouchS { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CsignS { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Cvouch_NOS { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Cdept_ID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Cbill { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? Dbill_date { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Cdept_IDM { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CbillM { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? Dbill_dateM { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Cdept_IDF { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CbillF { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? Dbill_dateF { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Cdept_IDS { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CbillS { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? Dbill_dateS { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? IsPriceEdit { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String PriceAdjEviNum { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String LabPlanNo { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String PhaseNOID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? FVerified { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String FVerifier { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? FVerifydate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String FVsummary { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? GiftCostShare { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String LocalContactNum { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Sales_Price_Type { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Double? FreightByAmount { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? VerifyDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? PostDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Double? GzState { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String ProjectTask { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? SysKis { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? SysKisB { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? SelectKis { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String LinesCode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String SGEviNum { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? Invoiced { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String ShipBY { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String ShipNumber { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String ShipContactNum { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? ShipDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String ShipDriver { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String SignBackMan { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? SignBackDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? SignBackState { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String SignBackSumm { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime? ShippingDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CustTypeId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Double? STareWeight { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? SfCtn { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? XfCtn { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Double? SRateWeight { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? DtFrom { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? _cid { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String Evfrom { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String ContactPhone { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? FInterID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String ProjectNO { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32? Btype { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String PMPtype { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String SMPtype { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CF01 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CF02 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CF03 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CF04 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CF05 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CF06 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CF07 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CF08 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CF09 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public System.String CF10 { get; set; }


        /// <summary>
        /// 仓库单据明细导航
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(InventoryEvidenceDetail.Evidence_Number))]
        public List<InventoryEvidenceDetail> FG_InvDetail { get; set; }
    }
}